/* 
 *	Copyright (C) 2009-2010 miaohua
 *	http://code.google.com/p/lrcshower/
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *   
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *   
 *  You should have received a copy of the GNU General Public License
 *  along with GNU Make; see the file COPYING.  If not, write to
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
 *  http://www.gnu.org/copyleft/gpl.html
 *
 */

#pragma once
#include "AboutPage.h"
#include "WinLrcPage.h"
#include "DeskLrcPage.h"
#include "LrcSearchPage.h"
#include "afxwin.h"

enum SettingPage {AboutPage=0, WinLrcPage=1, DeskLrcPage=2, LrcSearchPage=4};

// CPlayerSettingDlg dialog
// This dialog is used to hold other setting pages
class CPlayerSettingDlg : public CDialog
{
	DECLARE_DYNAMIC(CPlayerSettingDlg)

public:
	CPlayerSettingDlg(SettingPage WhichPage=AboutPage, CWnd* pParent=NULL);   // standard constructor
	virtual ~CPlayerSettingDlg();

    // Dialog Data
	enum { IDD = IDD_SETTING_DLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    virtual BOOL OnInitDialog();
    afx_msg void OnBnClickedAboutBtn();
    afx_msg void OnBnClickedLrcBtn();
    afx_msg void OnBnClickedDesklrcBtn();
    afx_msg void OnBnClickedSearchlrcBtn();
    afx_msg void OnBnClickedCancelBtn();
    afx_msg void OnBnClickedRestoreAllBtn();
	DECLARE_MESSAGE_MAP()

private:
    // Helper function
    // Show the certain setting page
    void ShowSettingPage(SettingPage PageIdx);
 
    // Data member
    CAboutPage     m_AboutPage;               // About page
    CWinLrcPage    m_WinLrcPage;              // Window lrc show setting page
    CDeskLrcPage   m_DeskLrcPage;             // Desktop lrc show setting page
    CLrcSearchPage m_LrcSearchPage;           // Lrc search(online or local) setting page
    CStatic m_PropPos;                        // Place to hold pages
    SettingPage    m_PageIdx;                 // Indicates which page to be show when the player setting dailog popups
};
